<template>
  <el-pagination
    :page-size="pagination.pageSize"
    :current-page="pagination.currentPage"
    :total="pagination.total"
    :background="true"
    layout="total, prev, pager, next, jumper"
    @current-change="change"
  ></el-pagination>
</template>

<script>
export default {
  name: "Pagination",
  props: {
    pagination: {
      type: Object,
    },
  },
  methods: {
    change(event) {
      this.$emit("change", event);
    },
  },
};
</script>
